<template>
  <div class="animation-box">
    aaa
  </div>

</template>

<script>
  export default {
    name: 'search',
    props:['model']
  }
</script>

<style scoped>
.animation-box{
  margin: auto;
  width: 400px;
  height:400px;
  animation-name: example;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}

.animation-box:hover{
  background-color: red;
}

/* 动画代码 */
@keyframes example {
  0% {background-color: red; }
  50% {background-color: lightskyblue; }
  100% {background-color: red; }
}


</style>